import {observable, action} from 'mobx'

class GlobalStore {
    @observable
    num: number = 0

    @action
    decrease = (num: number) => {
        this.num -= num
    }
}

export default new GlobalStore()